﻿using Shared;

namespace WorldServer
{
    [ISerializableAttribute((long)Opcodes.WorldDisconnect)]
    public class WorldDisconnect : ISerializablePacket
    {
        public override void OnRead(RiftClient From)
        {
            if (From.Char != null)
            {
                Log.Success("WorldDisconnect", "Character disconnectig : " + From.Char.Name);
                From.Disconnect();
            }
        }
    }
}